package com.nbsaas.boot;

import com.nbsaas.boot.quartz.event.BootSuccessEvent;
import jakarta.annotation.Resource;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;


@Component
public class ApplicationBootRunner implements ApplicationRunner {

    @Resource
    private ApplicationEventPublisher applicationEventPublisher;

    @Override
    public void run(ApplicationArguments args) {
        applicationEventPublisher.publishEvent(new BootSuccessEvent());
    }
}
